package com.scpii.universal.hibernate.entity;

import com.scpii.universal.constant.GenericConstants;


/**
 * CatelogTab entity. @author MyEclipse Persistence Tools
 */

public class CatelogTab extends BaseEntity implements java.io.Serializable {

	// Fields

	private static final long serialVersionUID = 814911954753233541L;
	private Integer intCateId;
	private String varCateName;
	private Integer intEnterpId;
	private Integer intParentCateId;
	private Integer intAppId;
	private String varCateImgUrl;
	private Integer intDeleteSign;
	private String datUpdateDatetime;
	private Integer intHasSubCate;
	private String varCateDescrip;
	private Integer intType;
	private Integer intSourceId;
	private Integer intPrivilege;

	// Constructors

	/** default constructor */
	public CatelogTab() {
	}

	/** full constructor */
	public CatelogTab(String varCateName, Integer intEnterpId,
			Integer intParentCateId, Integer intAppId,
			String varCateImgUrl, Integer intDeleteSign,
			String datUpdateDatetime, Integer intHasSubCate,
			String varCateDescrip, Integer intType, 
			Integer intSourceId, Integer intPrivilege) {
		this.varCateName = varCateName;
		this.intEnterpId = intEnterpId;
		this.intParentCateId = intParentCateId;
		this.intAppId = intAppId;
		this.varCateImgUrl = varCateImgUrl == null ? "" : (varCateImgUrl
				.startsWith(GenericConstants.IMG_RELATIVE_PREFIX) ? getServerUrl()
				+ varCateImgUrl : varCateImgUrl);
		this.intDeleteSign = intDeleteSign;
		this.datUpdateDatetime = datUpdateDatetime;
		this.intHasSubCate = intHasSubCate;
		this.varCateDescrip = varCateDescrip;
		this.intType = intType;
		this.intSourceId = intSourceId;
		this.intPrivilege = intPrivilege;
	}
	
	public CatelogTab(Integer intCateId, String varCateName,
			Integer intParentCateId, String varCateImgUrl,
			Integer intHasSubCate, String varCateDescrip) {
		this.intCateId = intCateId;
		this.varCateName = varCateName;
		this.intParentCateId = intParentCateId;
		this.varCateImgUrl = varCateImgUrl == null ? "" : (varCateImgUrl
				.startsWith(GenericConstants.IMG_RELATIVE_PREFIX) ? getServerUrl()
						+ varCateImgUrl : varCateImgUrl);
		this.intHasSubCate = intHasSubCate;
		this.varCateDescrip = varCateDescrip;
	}
	
	/**
	 * 
	 * @param intCateId
	 * @param varCateName
	 * @param intParentCateId
	 * @param varCateImgUrl
	 * @param intHasSubCate
	 * @param varCateDescrip
	 * @param intType
	 * 
	 * invoked by:CatelogProcessAction.viewCatelogById(),CatelogDaoImpl.getAll()
	 */
	public CatelogTab(Integer intCateId, String varCateName,
			Integer intParentCateId, String varCateImgUrl,
			Integer intHasSubCate, String varCateDescrip, 
			Integer intType, Integer intPrivilege) {
		this.intCateId = intCateId;
		this.varCateName = varCateName;
		this.intParentCateId = intParentCateId;
		this.varCateImgUrl = varCateImgUrl == null ? "" : (varCateImgUrl
				.startsWith(GenericConstants.IMG_RELATIVE_PREFIX) ? getServerUrl()
						+ varCateImgUrl : varCateImgUrl);
		this.intHasSubCate = intHasSubCate;
		this.varCateDescrip = varCateDescrip;
		this.intType = intType;
		this.intPrivilege = intPrivilege;
	}
	
	public CatelogTab(Integer intCateId, String varCateName,
			String varCateImgUrl,Integer intHasSubCate) {
		this.intCateId = intCateId;
		this.varCateName = varCateName;
		this.varCateImgUrl = varCateImgUrl == null ? "" : (varCateImgUrl
				.startsWith(GenericConstants.IMG_RELATIVE_PREFIX) ? getServerUrl()
						+ varCateImgUrl : varCateImgUrl);
		this.intHasSubCate = intHasSubCate;
	}
	
	public CatelogTab(Integer intCateId, Integer intHasSubCate) {
		this.intCateId = intCateId;
		this.intHasSubCate = intHasSubCate;
	}
	
	public CatelogTab(String varCateImgUrl) {
		this.varCateImgUrl = varCateImgUrl == null ? "" : (varCateImgUrl
				.startsWith(GenericConstants.IMG_RELATIVE_PREFIX) ? getServerUrl()
						+ varCateImgUrl : varCateImgUrl);
	}
	
	public CatelogTab(Integer intCateId, String varCateName) {
		this.intCateId = intCateId;
		this.varCateName = varCateName;
	}

	public CatelogTab(Integer intParentCateId) {
		super();
		this.intParentCateId = intParentCateId;
	}
	// Property accessors


	public Integer getIntCateId() {
		return this.intCateId;
	}

	public void setIntCateId(Integer intCateId) {
		this.intCateId = intCateId;
	}

	public String getVarCateName() {
		return this.varCateName;
	}

	public void setVarCateName(String varCateName) {
		this.varCateName = varCateName;
	}

	public Integer getIntEnterpId() {
		return this.intEnterpId;
	}

	public void setIntEnterpId(Integer intEnterpId) {
		this.intEnterpId = intEnterpId;
	}

	public Integer getIntParentCateId() {
		return this.intParentCateId;
	}

	public void setIntParentCateId(Integer intParentCateId) {
		this.intParentCateId = intParentCateId;
	}

	public Integer getIntAppId() {
		return this.intAppId;
	}

	public void setIntAppId(Integer intAppId) {
		this.intAppId = intAppId;
	}

	public String getVarCateImgUrl() {
		return this.varCateImgUrl;
	}

	public void setVarCateImgUrl(String varCateImgUrl) {
		this.varCateImgUrl = varCateImgUrl;
	}

	public Integer getIntDeleteSign() {
		return this.intDeleteSign;
	}

	public void setIntDeleteSign(Integer intDeleteSign) {
		this.intDeleteSign = intDeleteSign;
	}

	public String getDatUpdateDatetime() {
		return this.datUpdateDatetime;
	}

	public void setDatUpdateDatetime(String datUpdateDatetime) {
		this.datUpdateDatetime = datUpdateDatetime;
	}

	public Integer getIntHasSubCate() {
		return this.intHasSubCate;
	}

	public void setIntHasSubCate(Integer intHasSubCate) {
		this.intHasSubCate = intHasSubCate;
	}

	public String getVarCateDescrip() {
		return this.varCateDescrip;
	}

	public void setVarCateDescrip(String varCateDescrip) {
		this.varCateDescrip = varCateDescrip;
	}

	public Integer getIntType() {
		return intType;
	}

	public void setIntType(Integer intType) {
		this.intType = intType;
	}

	public Integer getIntSourceId() {
		return intSourceId;
	}

	public void setIntSourceId(Integer intSourceId) {
		this.intSourceId = intSourceId;
	}

	public Integer getIntPrivilege() {
		return intPrivilege;
	}

	public void setIntPrivilege(Integer intPrivilege) {
		this.intPrivilege = intPrivilege;
	}

}